package com.chaoyi.dao.redis;

import java.util.List;

import redis.clients.jedis.Jedis;

public class RDDao {
	
	public String brpopUserAction(){
		List<String> list = null;
		try (Jedis jedis = RedisPool.INSTANCE.getResource()) {
			list = jedis.brpop(60, RedisKeys.userAction());
		}
		if(list==null)
			return null;
		return list.get(1);
	}
	
}
